<?php

namespace App\Models\V6;

use Illuminate\Database\Eloquent\Model;

class LessonCenter extends Model
{
    protected $fillable = ['category_name'];
    protected $table = 'lesson_center';

    public function hasManyArticle()
    {
        return $this->hasMany(LearningOfficerMatter::class, 'lessons_category_id', 'id')->limit(3);
    }
}
